package com.wjn.blog.familyblog.controller;

import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @auther WJN
 * @date 2019/10/31 11:04
 * @describetion
 */
@RestController
public class TestController {

    @RequestMapping("/testTXT")
    String index() {
        return "wjn's blog--Spring Boot";
    }

    @GetMapping("test")
    public void test(Test test){
        System.out.println(test.getId());
    }
}
@Data
class Test{
    private String id;
}